import request from "@/utils/request";
export function getList(params) {
  return request({
    url: "/api/czSpec/getList",
    method: "get",
    params,
  });
}
export function add(data) {
  return request({
    url: "/api/czSpec/add",
    method: "post",
    data,
  });
}
export function change(data) {
  return request({
    url: "/api/czSpec/change",
    method: "post",
    data,
  });
}
export function changeMore(data) {
  return request({
    url: "/api/czSpec/changeMore",
    method: "post",
    data,
  });
}

export function del(id) {
  return request({
    url: "/api/czSpec/del",
    method: "post",
    data: { id },
  });
}
export function changeStatus(data) {
  return request({
    url: "/api/czSpec/changeStatus",
    method: "post",
    data,
  });
}
export function detail(id) {
  return request({
    url: "/api/czSpec/detail",
    method: "get",
    params: { id },
  });
}
export function getListAll() {
  return request({
    url: "/api/czSpec/getListAll",
    method: "get",
  });
}

// 获取产品列表
export function getProductList(params) {
  return request({
    url: "/api/czSpec/getProductList",
    method: "get",
    params,
  });
}
// 单笔充值
export function singleMobileRecharge(data) {
  return request({
    url: "/api/order/singleMobileRecharge",
    method: "post",
    data,
  });
}